<template>
	<!-- 客服中心 -->
	<view>
		<!-- <image class="k_image" src="/static/kefuzhognxin.png" ></image> -->
		<view class="k_bottons">
			<!-- <view class="k_botton" v-if="info.ismerch!=1" @click="navTo('/pages/userservice/settled')">商家入驻</view>
			<view class="k_botton" v-if="info.ismerch==1" @click="navTo('/pages/business/shopmanagement','shop')">商品管理</view>
			<view class="k_botton" v-if="info.isbonus!=1" @click="$navTo('/pages/userservice/barter')">申请易货师</view> -->
			<!-- <view class="k_botton" @click="$navTo('/pages/other/joinin')">联合加盟</view> -->
			<!-- <view class="k_botton" @click="$navTo('/pages/business/contactus')">联系我们</view> -->
			<view class="k_botton" @click="phoneCall">联系我们</view>
		</view>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				info: {ismerch:0,isbonus:0}
			}
		},
		onShow() {
			this.getinfo();
		},
		methods:{
			getinfo(){
				this.$axios('index/main','POST','kf').then(res=>{
					if(res.data.code==200){
						this.info=res.data.data;
					}
				})
			},
			navTo(url,type){
				if(type=='shop'&&this.info.ismerch!=1) url='/pages/userservice/settled';
				this.$navTo(url);
			},
			phoneCall(){
				uni.makePhoneCall({
					phoneNumber:'19503886682'
				})
			}
		}
	}
</script>

<style lang="scss">
.k_image{
	height: 1109upx;
	width: 100%;
}
.k_bottons{
	padding: 50upx 20upx;
}
.k_botton{
	background: $base-color;
	border-radius: 10upx;
	color: #fff;
	text-align: center;
	line-height: 70upx;
	margin-bottom: 20upx;
}
</style>
